﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="productPriceHasChangedInCurrentDay.aspx.cs"
    Inherits="PeisongWeb.admin.productPriceHasChangedInCurrentDay" %>

<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>当前价格变动商品 - 想购网长期采购物流配送系统</title>
    <!--#include file="style.inc"-->
    <script type="text/javascript">
        function resetSrh() {
            document.getElementById('txtInputDt').value = "";
            document.getElementById('txtSellerName').value = "";
            document.getElementById('txtProductName').value = "";
            document.getElementById('ddl_CategoryRoot').selectedIndex = 0;
            document.getElementById('ddl_CategorySub').selectedIndex = 0;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin-body">
        <h2 class="section-cms">
            当前价格变动商品
        </h2>
        <ext:Panel ID="Panel1" runat="server" Title="查询搜索" BodyStyle="padding:5px 5px 0"
            Width="1120px" Frame="true" ButtonAlign="Center">
            <Body>
                <div id="admin_edit_content_search">
                    <ul>
                        <li style="width: auto; margin-right: 10px;">
                            <label>大类</label>
                            <asp:DropDownList runat="server" ID="ddl_CategoryRoot" DataTextField="name" DataValueField="categoryId"
                                AutoPostBack="True" OnSelectedIndexChanged="ddl_CategoryRoot_SelectedIndexChanged">
                            </asp:DropDownList>
                        </li>
                        <li style="width: auto; margin-right: 10px;">
                            <label>小类</label>
                            <asp:DropDownList runat="server" ID="ddl_CategorySub" DataTextField="name" DataValueField="categoryId">
                            </asp:DropDownList>
                        </li>
                        <li style="width: auto; margin-right: 10px;">
                            <label>商品名称</label>
                            <asp:TextBox runat="server" ID="txtProductName" Width="80px"></asp:TextBox>
                        </li>
                        <li style="width: auto; margin-right: 10px;">
                            <label>供应商</label>
                            <asp:TextBox runat="server" ID="txtSellerName" Width="80px"></asp:TextBox>
                        </li>
                        <li style="width: 162px; margin-right: 10px;">
                            <label>日期</label>
                            <ext:DateField ID="txtInputDt" runat="server" AllowBlank="true" ReadOnly="true"  Width="100" />
                        </li>
                        <li style="width: auto; margin-right: 10px;">
                            [<asp:LinkButton ID="lbtn_Search" runat="server" Text="搜 索" OnClick="lbtn_Search_Click" CausesValidation="false"></asp:LinkButton>]&nbsp;&nbsp;&nbsp; [<a href="javascript:resetSrh();">重 置</a>]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            [<asp:LinkButton runat="server" ID="linkExportToExcel" OnCommand="linkExportToExcel_Command" Text="导出Excel"></asp:LinkButton>]
                        </li>
                    </ul>
                </div>
            </Body>
        </ext:Panel>
        <p>&nbsp;</p>
        <div id="admin_list_content" style="width: 1120px;">
            <table cellpadding="0" cellspacing="0">
                <tr class="header-row">
                    <th>类别</th>
                    <th>商品等级</th>
                    <th>商品名称</th>
                    <th>供应商</th>                    
                    <th>原价</th>
                    <th>浮动价</th>
                    <th>报价时间</th>
                </tr>
                <asp:Repeater ID="rpt_list" runat="server">
                    <ItemTemplate>
                        <tr class='<%# Container.ItemIndex%2==0? "row-alt":"alt"  %>'>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "categoryName")%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "businessNatureName")%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem,"productName") %>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem,"companyName") %>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem,"oldSellerPrice","{0:F2}") %>
                            </td>
                            <td style='color:<%#DataBinder.Eval(Container.DataItem,"priceTend")%>'>
                                <%#DataBinder.Eval(Container.DataItem,"sellerPrice","{0:F2}") %>元/<%#DataBinder.Eval(Container.DataItem,"unit") %>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem,"inputDt") %>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <div id="page">
                <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                    OnPageChanged="AspNetPager1_PageChanged" runat="server" AlwaysShow="True" PageSize="20"
                    InvalidPageIndexErrorMessage="无效页码" PageIndexOutOfRangeErrorMessage="页码超出范围"
                    ShowCustomInfoSection="Left" CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 "
                    CustomInfoTextAlign="Left" HorizontalAlign="Right" NextPageText="下一页" FirstPageText="首页"
                    LastPageText="末页" PrevPageText="上一页">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
